// pages/home/home.js


Component({
  data:{
    bannerList:[{bannerImage:"/images/b2.png",homeIndex:5},{bannerImage:"/images/b3.png",homeIndex:7}]
  },
  pageLifetimes: {
    show() {
      if (typeof this.getTabBar === 'function') {
        this.getTabBar((tabBar) => {
          tabBar.setData({
            selected: 0
          })
        })
      }
    }

    
  },
  methods:{
    goEvaluateSystem(){
      wx.navigateTo({
        url:'/pages/testList/testList?type=0',
        fail(e){console.log(e)}
      });
    },
    goWeakTest(){
      wx.navigateTo({
        url:'/pages/testList/testList?type=1',
        fail(e){console.log(e)}
      });
    },
    goHealthSource(){
      wx.navigateTo({
        url:'/pages/testList/testList?type=2',
        fail(e){console.log(e)}
      });
    },
    goCognitionTest(){
      wx.navigateTo({
        url:'/pages/testList/testList?type=3',
        fail(e){console.log(e)}
      });
    },
    goActManage(){
      wx.navigateTo({
        url:'/pages/testList/testList?type=4',
        fail(e){console.log(e)}
      });
    },
  }
})